package org.romzzz.gwtclassifieds.server.data;

import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * This is a bean to store feedback messages using JDO.
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class FeedbackMessage implements Serializable {

	private static final long serialVersionUID = 7162378349760475361L;

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String date;
	@Persistent
	private String name;
	@Persistent
	private String message;
	
	public FeedbackMessage() {}
	
	public FeedbackMessage(String name, String message, Long id, String date) {
		this.name = name;
		this.message = message;
		this.id = id;
		this.date = date;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDate() {
		return this.date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
